package com.easylinkin.linkappapi.airconditioner.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;

/**
 * class info :
 *
 * @author liuqihang
 * @date 2021/5/8 14:29
 */
@Data
public class AirDeviceAttributeStatus extends Model<AirDeviceAttributeStatus> {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private String id;

    /**
     * 属性名称
     */
    @TableField("prop_name")
    private String propName;

    /**
     * 属性编码
     */
    @TableField("prop_code")
    private String propCode;

    /**
     * 单位
     */
    @TableField(exist = false)
    private String unit;

    /**
     * 父属性的编码
     */
    @TableField("parent_prop_code")
    private String parentPropCode;

    /**
     * 属性值
     */
    @TableField("prop_value")
    private String propValue;

    /**
     * 设备型号id
     */
    @TableField(exist = false)
    private String deviceUnitId;

    @TableField(exist = false)
    private String deviceUnitCode;

    @TableField(exist = false)
    private String specs;

    @TableField(exist = false)
    private Integer isShow;
    /**
     * 设备属性排序
     */
    @TableField(exist = false)
    private Integer sortNo;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
